<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::group("admin",function (){
    //登录路由
    Route::rule('/','admin/index/login','get|post');
    //注册路由
    Route::rule('register','admin/index/register','get|post');
    //后台首页路由
    Route::rule('index','admin/home/index','get');
    //退出登录路由
    Route::rule('logout','admin/home/logout','post');
    //首页欢迎页面路由
    Route::rule('welcome','admin/home/welcome','get');
    //用户赠删改查路由
    Route::rule('list','admin/user/list','get');
    Route::rule('add','admin/user/add','get|post');
    Route::rule('edit/[:id]','admin/user/edit','get|post');
    Route::rule('list','admin/user/del','post');
});
